package com.zxr.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import sunw.io.Serializable;

public class HibernateBaseDAO extends HibernateDaoSupport {
	
	public void save(Object entity){
		
		getHibernateTemplate().save(entity);
	}
	public void delete(Object entity){
		
		getHibernateTemplate().delete(entity);
	}
    public Object get(String entityName,java.io.Serializable id){
    	return getHibernateTemplate().get(entityName, id);
    }
    
    public List find(String hql,Object...params){
    	System.out.println("___"+hql);
    	System.out.println("___"+getHibernateTemplate());
    	return getHibernateTemplate().find(hql, params);
    }

}
